package cn.com.sbell.vss.csg.vap.bean;

public class PtzIdentity
{
	
	private Integer ptzId;
	private String vsDeviceId;
	
	public String getVsDeviceId() {
		return vsDeviceId;
	}

	public void setVsDeviceId(String vsDeviceId) {
		this.vsDeviceId = vsDeviceId;
	}

	public int hashCode() {
		int returnHashCode=10;
		int iniValue=17;
		
		if(null!=ptzId)
		{
			returnHashCode=23*ptzId.hashCode()+iniValue;
		}
		if(null!=vsDeviceId)
		{
			returnHashCode=23*vsDeviceId.hashCode()+iniValue;
		}
		return returnHashCode;
	}
	
	public boolean equals(Object obj) {
		if(this == obj){
			return true;
		}
		if(obj instanceof PtzIdentity){
			PtzIdentity other = (PtzIdentity)obj;
			return (this.ptzId == null? other.ptzId == null:this.ptzId.equals(other.ptzId))
			       &&(this.vsDeviceId == null? other.vsDeviceId == null:this.vsDeviceId.equals(other.vsDeviceId));
		}
		return false;
	}
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		
		sb.append("\nptzId:" + ptzId);
		sb.append("\nvsDeviceId:" + vsDeviceId);
		return sb.toString();
	}

	/**
	 * @return the ptzId
	 */
	public Integer getPtzId() {
		return ptzId;
	}

	/**
	 * @param ptzId the ptzId to set
	 */
	public void setPtzId(Integer ptzId) {
		this.ptzId = ptzId;
	}

	
}